package lancs.mobilemedia.core.ui.controller;

import java.util.Hashtable;

import lancs.mobilemedia.core.ui.controller.commands.CopyPhoto;
import lancs.mobilemedia.core.ui.controller.commands.SaveCopiedPhoto;

public class PhotoViewControllerMapper implements ControllerMapper {

	protected Hashtable commands;

	public PhotoViewControllerMapper() {
		commands = new Hashtable();
		init();
	}

	public ControllerCommand getCommand(String label) {
		return (ControllerCommand) commands.get(label);
	}

	public void init() {
		commands.put("Save Photo", new SaveCopiedPhoto());
		commands.put("Copy", new CopyPhoto());
	}

}
